﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SGS.Cards;

namespace SGS
{
    /// <summary>
    /// 用于Ask相关逻辑的处理（杀问出闪，决斗问出杀，死亡求桃等） 
    /// 同时返回是否使用某牌，具体使用的某张牌
    /// 
    /// </summary>
    public class AskUseCardResult
    {
        public enum AskResult
        {
            Cancel,
            Skip,
            Used
        }

        public static AskUseCardResult CancelResult
        {
            get
            {
                return new AskUseCardResult(AskResult.Cancel);
            }
        }

        public static AskUseCardResult SkipResult
        {
            get
            {
                return new AskUseCardResult(AskResult.Skip);
            }
        }

        public AskUseCardResult()
        {
        }

        public AskUseCardResult(AskResult result, List<Card> usedCard = null)
        {
            AnswerResult = result;
            UsedCard = usedCard;
        }

        public AskResult AnswerResult
        {
            get;
            set;
        }

        public List<Card> UsedCard
        {
            get;
            set;
        }
    }
}
